package jmine.tec.web.wicket.component.command.button;

import static jmine.tec.web.wicket.pages.form.WebFormPagesMessages.LABEL_BUTTON_SEARCH;

import org.apache.wicket.Page;

/**
 * Command que força o submit do formulario.
 * 
 * @author Rafael Volpato
 * @date Aug 12, 2011
 */
public class SearchCommand extends AbstractButtonCommand {

    /**
     * Não faz nada, isso força o submit do formulario
     * 
     * @return <code>null</code>
     */
    @Override
    public Page execute() {
        return null;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getLabel() {
        return LABEL_BUTTON_SEARCH.create().getMessage();
    }
}
